package com.hxexp.weixin.common.jaxb;

import javax.xml.bind.annotation.adapters.XmlAdapter;

/**
 * CDATA数据适配器
 * @author li.jiang
 *
 */
public final class CDATAAdapter extends XmlAdapter<String, String> {

    @Override
    public String unmarshal(String v) throws Exception {
        return v;
    }

    @Override
    public String marshal(String v) throws Exception {
        return "<![CDATA[" + v + "]]>";
    }

}
